package com.changfeng.exception;

public enum ChangFengExceptionEnum implements ServiceExceptionEnum {
    /**
     * 其他
     */
    OK(0,"OK"),
    USER_NAME_REPEAT(301,"用户名重复"),
    NOT_USER(302,"没有找到用户"),
    USER_CHECK_PASSWORD_ERROR(303,"用户密码错误"),
    INVLIDE_DATE_STRING(400, "输入日期格式不对"),
    PARAM_EXCEPTION(401,"参数异常"),
    ERROR(999,"系统繁忙"),
    NO_POWER(700,"没有权限"),
    WRITE_ERROR(500, "渲染界面错误");

    ChangFengExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
